-
Notifications
You must be signed in to change notification settings - Fork 21
replace fwd_scale
with norm
kwarg in mkl_fft
#189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fb12707
to
31e17ab
Compare
eadecd3
to
12677c0
Compare
12de45d
to
66c6ff2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you @vtavana
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR replaces the fwd_scale
parameter with norm
parameter in mkl_fft
functions to align with NumPy and SciPy FFT interfaces. The change makes the API more consistent with standard FFT libraries.
- Replaced
fwd_scale
parameter withnorm
parameter across all FFT functions - Updated function signatures in both interface modules and core implementation
- Modified tests to use
norm
parameter instead offwd_scale
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
mkl_fft/_mkl_fft.py | Updated core FFT function signatures to use norm parameter and added internal computation of forward scale factor |
mkl_fft/interfaces/_scipy_fft.py | Removed _compute_fwd_scale usage and passed norm directly to underlying FFT functions |
mkl_fft/interfaces/_numpy_fft.py | Removed _compute_fwd_scale usage and passed norm directly to underlying FFT functions |
mkl_fft/tests/test_fftnd.py | Updated test cases to use norm parameter, removed scaling-specific test class, added None value test |
mkl_fft/_fft_utils.py | Minor string formatting improvements unrelated to main change |
README.md | Updated function signatures in documentation to reflect norm parameter |
CHANGELOG.md | Added entry documenting the parameter replacement |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Both NumPy and SciPy use
norm
parameter which is the normalization mode that is used scaling the FFT results.mkl_fft
has the scaling parameterfwd_scale
directly. In this PR,fwd_scale
is replaced withnorm
to be aligned with NumPy and SciPy.